package com.tlxch.mapper;

import com.github.pagehelper.Page;
import com.tlxch.dto.LearnModeldto;
import com.tlxch.dto.TAssessdto;
import com.tlxch.dto.TStudentTAlertdto;
import com.tlxch.pojo.SGrades;
import com.tlxch.vo.StudentGradevo;
import com.tlxch.vo.TAssessvo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface SGradesMapper {
    int deleteByPrimaryKey(Integer sgId);

    int insert(SGrades record);

    int insertSelective(SGrades record);

    SGrades selectByPrimaryKey(Integer sgId);

    int updateByPrimaryKeySelective(SGrades record);

    int updateByPrimaryKeyWithBLOBs(SGrades record);

    int updateByPrimaryKey(SGrades record);

    Page<LearnModeldto> getStuOrBySsid(TAssessdto tAssessdto);

    List<SGrades> getBystuId(String sgSid);

    SGrades getbystu(TStudentTAlertdto student);
}